package com.oba.king.sysmanager.log;

import java.util.Date;

import com.oba.base.service.BaseBo;
import com.oba.king.login.UserInfo;

public class Log extends BaseBo {
	
	private Long id;
	private Long itemId;
	private Integer code;
	private Integer type;
	private UserInfo userInfo;
	private Date saveTime;
	
	private TableInfo tableInfo;

	public Integer getCode() {
		return code;
	}

	public TableInfo getTableInfo() {
		return tableInfo;
	}

	public void setTableInfo(TableInfo tableInfo) {
		this.tableInfo = tableInfo;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public Date getSaveTime() {
		return saveTime;
	}

	public void setSaveTime(Date saveTime) {
		this.saveTime = saveTime;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public UserInfo getUserInfo() {
		return userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}

	public String getName() {
		return null;
	}
	
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	
	public String getTypeStr() {
		String temp = null;
		if(type == null) {
		} else if (type == 1) {
			temp = "新增";
		} else if (type == 2) {
			temp = "修改";
		} else if (type == 3) {
			temp = "删除";
		}
		return temp;
		
	}

}
